Player

open class Player

A class to control and observe audio/video content.

Types

Companion
Link copied to clipboard
object Companion
The Player companion class.

Functions

disconnect
Link copied to clipboard
fun disconnect()
Disconnects the player from the PlayerStreamer service.
pause
Link copied to clipboard
fun pause()
Pauses playback and the player transitions to PlayerState.IDLE.
play
Link copied to clipboard
fun play()
Starts or resumes playback of the current stream.
toString
Link copied to clipboard
open override fun toString(): String
Returns a string representation of the Player

Properties

availableQualities
Link copied to clipboard
val availableQualities: List<PlayerQuality>
A list of qualities from a stream.
isMuted
Link copied to clipboard
var isMuted: Boolean
The audio-muting state of the player.
liveLatency
Link copied to clipboard
val liveLatency: Long
For a live stream, the latency to the source.
playerView
Link copied to clipboard
var playerView: PlayerView? = null
A view that renders Player media content.
position
Link copied to clipboard
val position: Long
The playback position.
quality
Link copied to clipboard
var quality: PlayerQuality
Quality of the stream.
state
Link copied to clipboard
var state: PlayerState
The player state.
stats
Link copied to clipboard
val stats: PlayerStats
The media statistics of the Player's live stream.
streamerSid
Link copied to clipboard
val streamerSid: String
videoSize
Link copied to clipboard
var videoSize: VideoDimensions
Native size of the current video source, in pixels.
volume
Link copied to clipboard
var volume: Float = 1.0f
Output gain of the audio track.